package com.wfit.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(("shopping_cart"))
public class Cart {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "uid")
    private Long uid;

    @TableField(value = "image")
    private String image;

    @TableField(value = "cid")
    private String cid;

    @TableField(value = "amount")
    private Double amount;

    @TableField(value = "number")
    private Integer number;

    @TableField(value = "style")
    private Double style;
}
